path_duplicate

Duplicates an existing path, returning its index.

语法:

path_duplicate(index);


参数 描述
index The index of the existing path to duplicate.


返回: Real(实数)


描述

This function takes a path and copies it into a new path. The new path is created in the process, and the index is returned to be used in all further calls to use this new path.

重要!该函数在试用版(Trial License)产品中可用。



例如:

mypath = path_duplicate(choose(path_1, path_2, path_3, path_4));

The above code chooses one of four path resources and duplicates it, storing the index of the new path in the variable "mypath".


上一页: Changing Paths
下一页: path_flip
© Copyright YoYo Games Ltd. 2018 All Rights Reserved